package com.polymer.app.common;

import java.lang.instrument.Instrumentation;
import java.util.ArrayList;
import java.util.List;

public class ThreadPoolsUtils {
    
    private static  Instrumentation ins; 

    public static void main(String[] args) {
        List<String> list =new ArrayList<>();
        list.add("宇翊");
        long a=0;
        do {
            list.add(list.toString());
            a++;
            if(a==10){
                System.out.println(list.toString().length());
            }
            if(a==20){
                System.out.println(list.toString().length());
            }
            if(a==25){
                System.out.println(list.toString().length());
                System.out.println(ins.getObjectSize(list));
            }
            if(a==26){
                System.out.println(list.toString().length());
            }
        }while(a<101);
    }
}
